Infinitude of Primes

Theorem

There are infinitely many prime numbers in Z.

The proof given below was originally formulated by Euclid. Another famous proof comes about by proving the stronger result that the sum of reciprocals of primes diverges.

Proof

Assume, by way of contradiction, that the set P={p1,,pn} is an exhaustive collection of primes.

Then, define

x=1+k=1npk.

There are two cases to consider. The first is where x is prime. However x>max(P) and hence we have a prime xP, a contradiction.

If x is composite then it is divisible by a prime piP. Calculating this division gives

xpi=1pi+k=1kinpk.

However, pixxpiZ, and the product on the right hand side is also an integer. Given that 2 is the smallest prime, we have a contradiction of a non integer 1pi plus an integer is an integer.


Here is a similar, alternate proof.

Proof

Let n>1 be an integer, and consider n!+1. Suppose a prime p divides n!+1. If pn, then pn! and hence pn!+1n!=1, a contradiction on p being prime. As such, any prime factor of n!+1 must be greater than n. This means that there exists arbitrarily large primes, since n!+1 will always have a prime factor (using a weaker form of the fundamental theorem of arithmetic).